# -*- encoding: utf-8 -*-
'''
@File		:	touch_by_image.py
@Time		:	2024/02/20 15:13:59
@Author		:	dan
@Description:	本代码演示使用图片定位和点击
'''


import sys
sys.path.append(".")
import matter
import matter.android

@matter.test_case("测试根据图片点击")
def test_touch_by_image():
    enter_image = 'tests/matter/android/touch_by_image/1.enter.png'
    matter.android.exist_image(enter_image)
    matter.android.touch_by_image(enter_image)
    matter.sleep(4)


if __name__ == '__main__':
    matter.start(yml='demo/matter/android/matter.image.yml')